﻿using STHPMS1.ICore.I_Entity.Info;
using STHPMS1.ICore.I_Entity.Stmpms1;
using System;
using System.Collections.Generic;
using System.Linq.Expressions;

namespace STHPMS1.ICore.I_BLL.Bus
{
    public interface IDp_Preven_PlanBill : IBll
    {
        void Save<T>(T entity) 
            where T:class ,IDp_Preven_Plan;

        void Remove(IDp_Preven_Plan entity);

        IEnumerable<T> Get<T>(Expression<Func<T, bool>> predicate, IPagingInfo info)
            where T : class, IDp_Preven_Plan;
        /// <summary>
        /// 设置最佳年份
        /// </summary>
        /// <param name="road"></param>
        void SetYear(string anniname, string analy_year);

        /// <summary>
        /// 选取效益费用最优的养护年份
        /// </summary>
        /// <param name="rdwayid"></param>
        /// <param name="mainsegid"></param>
        /// <returns></returns>
        string GetYear(string anniname, string rdwayid, string mainsegid);
    }
}
